<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.3.12.RELEASE</version>
    </parent>
    <#--<groupId><#if hasModule>${customParentPackage}<#else >${package.Parent}</#if></groupId>-->

    <groupId>${formBean.springCloudPackageName}</groupId>
    <artifactId>${formBean.platformName}</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>pom</packaging>
    <modules>
        <#list formBean.artifactIdList as module_name>
        <module>${module_name}</module>
        </#list>
    </modules>
    <properties>
        <java.version>1.8</java.version>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <spring.boot.ver>2.3.12.RELEASE</spring.boot.ver>
        <mp.ver>3.5.0</mp.ver>
        <mybatis.starter.ver>2.2.0</mybatis.starter.ver>
        <swagger.ver>3.0.0</swagger.ver>
        <bootstrap.ui.ver>1.9.6</bootstrap.ui.ver>
        <springboot.ver>2.3.12.RELEASE</springboot.ver>
        <springcloud.ver>Hoxton.SR12</springcloud.ver>
        <springcloud-alibaba.ver>2.2.9.RELEASE</springcloud-alibaba.ver>
        <ttxs.common.ver>1.0-SNAPSHOT</ttxs.common.ver>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>
        <!-- mybatis plus依赖，包含mybatis-->
        <dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus-boot-starter</artifactId>
            <version>${r'${mp.ver}'}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-boot-starter</artifactId>
            <version>${r'${swagger.ver}'}</version>
        </dependency>
        <dependency>
            <groupId>com.github.xiaoymin</groupId>
            <artifactId>swagger-bootstrap-ui</artifactId>
            <version>${r'${bootstrap.ui.ver}'}</version>
        </dependency>
        <#if !formBean.staticRoute>
        <!--  nacos注册中心的依赖-->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
        </dependency>
        <dependency>
            <groupId>com.ttxs</groupId>
            <artifactId>ttxs-common-core</artifactId>
            <version>${r'${ttxs.common.ver}'}</version>
        </dependency>
        </#if>
        <#if formBean.staticRoute && formBean.springCloud>
        <!--  nacos注册中心的依赖-->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
        </dependency>
        <!--  nacos配置中心的依赖-->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
        </dependency>
        </#if>
    </dependencies>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${r'${springcloud.ver}'}</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>
            <dependency>
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
                <version>${r'${springcloud-alibaba.ver}'}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

</project>